import {defineStore} from "pinia";
import {ref} from "vue";

export const useTenantAuthStore = defineStore('tenantAuth', () => {
    let tenantAuthSearchData = ref({})
    let tenantAuthDataList = ref([]);
    let tenantAuthDeleteDialog = ref(false);
    let tenantAuthAddDialog = ref(false);

    function resetTenantAuthSearchData(info) {
        tenantAuthSearchData.value = info;
    }

    function resetTenantAuthDataList(info) {
        tenantAuthDataList.value = info;
    }

    function resetTenantAuthDeleteDialog(flag) {
        tenantAuthDeleteDialog.value = flag;
    }

    function resetTenantAuthAddDialog(flag) {
        tenantAuthAddDialog.value = flag;
    }

    return { tenantAuthSearchData, resetTenantAuthSearchData, tenantAuthDataList, resetTenantAuthDataList, tenantAuthDeleteDialog, resetTenantAuthDeleteDialog,
        tenantAuthAddDialog, resetTenantAuthAddDialog }
})